<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="../../../docs/image/image2D.png">
    <script src="../../../build/image2D.js"></script>
    <title>image2D - 用例测试 - bezier</title>
</head>

<body>
    <script>

        // 准备画布
        var canvas = $$('<canvas>非常抱歉，您的浏览器不支持canvas!</canvas>').attr({
            "width": 400,
            "height": 400
        }).appendTo('body');

        // 获取并配置画笔
        var painter = canvas.painter();

        /**
         * 测试开始
         * ----------------------------
         */
        painter.moveTo(20, 20).quadraticCurveTo(20, 100, 200, 20).stroke();
        painter.beginPath().moveTo(20, 120).bezierCurveTo(20, 200, 200, 200, 200, 120).stroke();

    </script>
</body>

</html>
